const ROOT = `${location.protocol}//${location.host}`

export const API_URL = {
    // SUIT
    getAllSuites: `${ROOT}/api/getAllSuites`,
    getAllSuitesOfPage: `${ROOT}/api/getAllSuitesOfPage`,
    getAllSuitesOfPlan: `${ROOT}/api/getAllSuitesOfPlan`,
    getAllStepsOfSuiteInPlan: `${ROOT}/api/getAllStepsOfSuiteInPlan`,
    getSuiteDetail: `${ROOT}/api/getSuiteDetail`,
    saveSuiteDetail: `${ROOT}/api/saveSuiteDetail`,
    deleteSuite: `${ROOT}/api/deleteSuite`,

    // STEP COLLECTION
    getAllStepCollections: `${ROOT}/api/getAllStepCollections`,
    getStepCollectionDetail: `${ROOT}/api/getStepCollectionDetail`,
    saveStepCollectionDetail: `${ROOT}/api/saveStepCollectionDetail`,

    // LOG
    clearData: `${ROOT}/api/clearData`,
    statLogBySuite: `${ROOT}/api/statLogBySuite`,
    getLogsOfSuite: `${ROOT}/api/getLogsOfSuite`,
    statLogsOfPlan: `${ROOT}/api/statLogsOfPlan`,
    getStepFullLog: `${ROOT}/api/getStepFullLog`,
    updateLogRemark: `${ROOT}/api/updateLogRemark`,

    // SCREENSHOT
    getScreenShotOfStep: `${ROOT}/api/getScreenShotOfStep`,

    // ELEMENT
    getAllElementsOfPage: `${ROOT}/api/getAllElementsOfPage`,
    saveElements: `${ROOT}/api/saveElements`,
    getElementsOfIds: `${ROOT}/api/getElementsOfIds`,

    // AJAX
    getAllAjaxsOfPage: `${ROOT}/api/getAllAjaxsOfPage`,
    saveAjaxs: `${ROOT}/api/saveAjaxs`,
    getAjaxsOfIds: `${ROOT}/api/getAjaxsOfIds`,

    // MOCK
    getAllMocksOfAjax: `${ROOT}/api/getAllMocksOfAjax`,
    saveMocks: `${ROOT}/api/saveMocks`,
    getMocksOfIds: `${ROOT}/api/getMocksOfIds`,

    // CONFIG
    getAllConfigs: `${ROOT}/api/getAllConfigs`,
    saveConfig: `${ROOT}/api/saveConfig`,

    // PLAN
    getAllPlans: `${ROOT}/api/getAllPlans`,
    getAllPlanSummaries: `${ROOT}/api/getAllPlanSummaries`,
    addPlan: `${ROOT}/api/addPlan`,
}